package com.cmbc.thread;

import java.util.concurrent.FutureTask;

/**
 * 创建多线程的方式3.实现Callble接口（线程池）
 * @author MilchstraBe_
 *
 */
public class App4 {

	public static void main(String[] args) {
		FutureTask<String> futureTask=new FutureTask(new Window3());
		ThreadPoolUtil.Run(futureTask);
		FutureTask<String> futureTask2=new FutureTask(new Window3());
		ThreadPoolUtil.Run(futureTask2);
		FutureTask<String> futureTask3=new FutureTask(new Window3());
		ThreadPoolUtil.Run(futureTask3);
		FutureTask<String> futureTask4=new FutureTask(new Window3());
		ThreadPoolUtil.Run(futureTask4);
		FutureTask<String> futureTask5=new FutureTask(new Window3());
		ThreadPoolUtil.Run(futureTask5);
	}

}
